//
//  SSPhotoViewModel.swift
//  weibo
//
//  Created by 邵帅 on 16/6/28.
//  Copyright © 2016年 groupNineObject. All rights reserved.
//

import UIKit

class SSPhotoViewModel: NSObject {

    var model: SSPhotoModel?
    
    init(model: SSPhotoModel) {
        
        self.model = model
        
        super.init()
        
    }
    
    
    var imageURL: NSURL? {
        
        if let urlString = model?.thumbnail_pic {
            
            return NSURL(string: urlString)
        } else {
            
            return NSURL()
        }
        
        
        
        
    }
    
}
